package pearson.automation.forms.registration;

import org.testng.Assert;
import org.openqa.selenium.By;

import framework.BaseForm;
import framework.Browser;
import framework.elements.Button;

public class AccountPage extends BaseForm {
    private static Button login = new Button(
            By.cssSelector("input[value='Log in']"), "Login");
    
    public AccountPage() {
        super(login.getLocator(), "Account page");
        Assert.assertTrue(
                browser.getDriver().getCurrentUrl().contains(
                        Browser.props.getProperty("accountURL")),
                "Wrong page URL");
    }

}
